FROM openjdk:8-jre

RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone

ADD target/miliao-authentication.jar miliao-authentication.jar

ENV SPRING_PROFILES_ACTIVE default

ENTRYPOINT ["/usr/bin/java", "-jar", "-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}", "miliao-authentication.jar"]
